#include<stdio.h>
int main()
{
	char a[100];
	int i,word=1;
	char blank;
	printf("please your like a words:\n");
	gets(a);
	if(a[0]=='\0')
	{
		printf("it not have char!\n");
	}
	else if(a[0]==' ')
	{
		printf("it is a blank!\n");
	}
	else
	{
		for(i=0;a[i]!='\0';i++)
		{
			blank=a[i];
			if(blank==' ')
			{
				word++;
			}
		}
	printf("%d\n",word);
	}
	return 0;
} 
